package com.pan.behavioral.chain.node.score;

import com.pan.behavioral.chain.node.ChainNode;

public class ScorePass extends ChainNode<Integer> {

    public ScorePass(ChainNode chainNode) {
        super(chainNode);
    }

    @Override
    public boolean isProcessable(Integer obj) {
        if (obj>=60 && obj<100){
            return true;
        }
        return false;
    }

    @Override
    public void handle(Integer obj) {
        System.out.println(obj+" 及格");
    }
}
